//
//  ViewController.m
//  ZFGifDecoderDemo
//
//  Created by 赵梁 on 2016/12/12.
//  Copyright © 2016年 zify. All rights reserved.
//

#import "ViewController.h"

#import "UIImageView+ZF_Gif.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *gifImageView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    
}

- (IBAction)loadGIF:(id)sender {
    NSLog(@"____");
    [_gifImageView zf_animationOnceGifWithNamed:@"lunach_gif" endWithImage:[UIImage imageNamed:@"lunach_app"] completion:^{
        NSLog(@"____");
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
